import com.sghd.common.console.Console;
import data.dao.MysqlTemplate;
import data.entity.GameRecord;
import data.entity.PK;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import utils.encrypt.PropUtil;

/**
 * @author fank
 * @date 2018/03/06
 */
public class Main {
    private static Logger logger = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) {
        Console console = new Console(new ClassPathXmlApplicationContext("applicationContext.xml"));
        console.start();
        if (logger.isInfoEnabled()) {
            logger.info("容器初始化成功绑定服务器端口[{}]", PropUtil.getProperty("port"));
        }
    }
}
